package com.example.petproject.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 包名称：com.example.petproject.config
 * 类名称：WeChatLoginConfig
 * 类描述：微信登录配置项
 * 创建人：@author DrinkMore-HotWater
 * 创建时间：2024年01月08日 10:31
 **/
@Configuration
@ConfigurationProperties("wechat.login")
public class WeChatLoginConfig {

    private String appId;
    private String appSecret;


    private String accessTokenUrl;

    private String grantType;

    /**
     * 第三步获取用户信息配置
     * 获取用户信息请求路径Url
     */
    private String userInfoUrl;

    /**
     * 响应数据语言
     */
    private String lang;

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    public String getUserInfoUrl() {
        return userInfoUrl;
    }

    public void setUserInfoUrl(String userInfoUrl) {
        this.userInfoUrl = userInfoUrl;
    }

    public String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getAccessTokenUrl() {
        return accessTokenUrl;
    }

    public void setAccessTokenUrl(String accessTokenUrl) {
        this.accessTokenUrl = accessTokenUrl;
    }
}
